<?php
/**
 * Created by PhpStorm.
 * User: dev
 * Date: 7/10/14
 * Time: 1:07 PM
 */

class Products_Widget_Filter_Controller extends Base_Controller {

    public $restful = true;

    public function __construct()
    {
        parent::__construct();
        //--Your Code --//
    }


    public function get_pro(){
    	
    	$data['mode'] = 'PRO';
    	$data['parent'] = Categories::where('parent_id','=',0)->get(array('id','name','slug')); 
    	//Categories::parent(0)->get(array('id','name','slug'));
    	
    	return View::make('Products::widget.filter',$data);
    }
    
    public function get_prolead(){
    	 
    	$data['mode'] = 'LEAD';
    	$data['parent'] = Categories::where('parent_id','=',0)->get(array('id','name','slug'));
    	//Categories::parent(0)->get(array('id','name','slug'));
    	 
    	return View::make('Products::widget.filter',$data);
    }
}